package com.tbit.uqbike.client.dao.core;

import com.tbit.uqbike.client.pojo.MachineFault;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: chen
 * @Description: 故障车辆
 * @Date: 创建于 9:08 2020/1/15
 */
public interface MachineFaultDao {
    /**
     * 新增
     */
    void insert(MachineFault machineFault);

    /**
     * 通过设备id查询
     *
     * @param machineId
     * @return
     */
    MachineFault getByMachineId(Integer machineId);

    /**
     * @description: 根据车辆id删除车辆的故障信息
     * @author: mo.shanyong
     * @date: 2025/5/13 15:58
     * @param: machineId
     * @return: int
     */
    int del(@Param("machineId") Integer machineId);
}
